package com.rc.evcharger.service.discount;

import com.rc.evcharger.common.base.BaseService;
import com.rc.evcharger.mapper.discount.TenantDiscountMemberStationMapper;
import com.rc.evcharger.model.discount.TenantDiscountMemberStation;
import com.rc.evcharger.model.discount.TenantDiscountMemberStationExample;
import com.rc.evcharger.model.discount.TenantDiscountTime;
import com.rc.evcharger.model.order.OrderInfo;

/**
 * Create by Yang on 2019/11/25
 */
public interface TenantDiscountMemberStationService extends BaseService<Long, TenantDiscountMemberStation, TenantDiscountMemberStationExample, TenantDiscountMemberStationMapper> {
    TenantDiscountTime selectByMemberIdAndEsId(Long memberId, Long stationId, String policyDiscountType);

    TenantDiscountTime selectByMemberIdAndEsId(Long memberId, Long stationId);

    TenantDiscountTime selectByMemberIdAndEsId(Long memberId, Long stationId, Long discountPolicyId);

    //失效
    void updateStatusInvalid(Long dmsId);

    void updateSaleServiceAmountByOrder(OrderInfo orderInfo);
}
